<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<style>

    .layui-upload-colse {
        position: relative;
    }

    .closeUpload {
        position: absolute;
        top: 0;
        right: 0;
        width: 20px;
        height: 20px;
        cursor: pointer;
    }

    .upImg {
        width: 80px;
        height: 80px;
    }

    .formfixed {
        position: relative;
    }

    .remove {
        position: absolute;
        top: 125%;
        right: -175px;
        transform: translateY(-50%);
        cursor: pointer;
    }

    .myheader {
        height: 140px;
        background-color: #FFFFFF;
        padding: 20px 0;
        display: flex;
        align-items: center;
        margin: 0;
        flex-wrap: wrap;
    }

    .layui-tab {

        overflow: auto;
        background-color: #FFFFFF;
        margin: 10px 0 0 0;
    }

    .layui-input-block1 {
        display: flex;
        align-items: center;
        justify-content: flex-start
    }
    .layui-tab-title{
        height: 40px!important;
    }
    .layui-tab-content{
        height: calc(100% - 40px);
        overflow: auto;
    }
</style>
<body>
<input id="userId" th:value="${myData.id}" style="display: none">
<input id="isSubmit" th:value="${null!=myData && myData?.auditResult!=2}" style="display: none">
<div class="layui-fluid mt2" style="background-color: #f0f2f5">
    <form class="layui-form" style="height: 100%;">
        <div class="layui-form-item " >
            <div class="layui-inline" style="width: calc((100% - 40px) / 3);">
                <label class="layui-form-label">发布人</label>
                <div class="layui-input-block layui-input-block1" th:text="${myData?.username}">
                </div>
            </div>
            <div class="layui-inline" style="width: calc((100% - 40px) / 3);">
                <label class="layui-form-label" >发布时间</label>
                <div class="layui-input-block layui-input-block1"
                     th:text="${myData.createTime} eq null ? '' : ${#dates.format(myData.createTime, 'yyyy-MM-dd HH:mm:ss')}" >
                </div>
            </div>
            <div class="layui-inline" style="width: calc((100% - 40px) / 3);">
                <label class="layui-form-label">审核状态</label>
                <div class="layui-input-block layui-input-block1" th:text="${myData?.auditStatus==0?'待审核':'已审核'}">
                </div>
            </div>
        </div>
        <div class="layui-form-item " >
            <div class="layui-inline" style="width: calc((100% - 40px) / 3);">
                <label class="layui-form-label">性别</label>
                <div class="layui-input-block layui-input-block1" th:text="${myData?.sex==0?'男':'女'}">
                </div>
            </div>
            <div class="layui-inline" style="width: calc((100% - 40px) / 3);">
                <label class="layui-form-label">服务类型</label>
                <div class="layui-input-block layui-input-block1" th:text="${myData?.projectName}">
                </div>
            </div>
            <div class="layui-inline" style="width: calc((100% - 40px) / 3);">
                <label class="layui-form-label">入驻时间</label>
                <div class="layui-input-block layui-input-block1" th:text="${myData?.movieHouseTime}">

                </div>
            </div>
        </div>
        <div class="layui-form-item" style="width: calc(100% - 10px);height: 150px">
                <label class="layui-form-label">审核结果</label>
                <div  class="layui-form" th:if="${null==myData||myData.auditStatus == 0}">
                    <input type="radio" lay-filter="demo-radio-filter" name="auditResult" value="0" title="已通过" th:checked="${myData?.auditResult==0}">
                    <input type="radio" lay-filter="demo-radio-filter" name="auditResult" value="1" title="未通过" th:checked="${myData?.auditResult==1}" >
                </div>
                <div  class="layui-input-block layui-input-block1" th:if="${null!=myData && myData?.auditResult!=2}" th:text="${(myData?.auditResult==0)?'通过':((myData?.auditResult==1)?'拒绝':'未审核')}">
                </div>


                <div class="layui-input-block" th:style="${myData?.auditResult==1?'display: block':'display: none'}"  id="refuseReason">
                            <textarea name="refuseReason" placeholder="请输入拒绝原因" lay-verify="introduction"
                                      th:text="${myData?.refuseReason}"
                                      th:disabled="${myData?.auditResult==1}"
                                      class="layui-textarea"></textarea>
                </div>

            </div>




        <div class="layui-form-item  layui-flow-more">
            <div class="layui-inline">
                <button type="button" class="layui-btn" lay-submit lay-filter="submit">立即提交</button>
            </div>
        </div>

    </form>
</div>

<div th:include="include::footer"></div>
<script type="text/javascript" src="/js/xmSelect.js"></script>
<script type="text/javascript" src="/js/webJs/jzweb/jazUserAuntStay/info.js"></script>
</body>
</html>